package zxs.sino.elite.hub.service.app;

import com.github.yulichang.base.MPJBaseService;
import zxs.sino.elite.hub.model.form.ArticleForm;
import zxs.sino.elite.hub.model.app.ArticleEntity;
import zxs.sino.elite.hub.model.vo.app.ArticleVo;

import java.io.IOException;

/**
 * 文章表
 *
 * @author zhang
 * @email 15824760766@163.com
 * @date 2025-08-31 20:57:21
 */
public interface ArticleService extends MPJBaseService<ArticleEntity> {

    /**
     * 获取博客详情
     * @param articleId
     * @return
     */
    ArticleVo getArticle4ArticleId(Long articleId);

    /**
     * 发表博客
     * @param article
     */
    void saveOrUpdateArticle(ArticleForm article) throws IOException;

    /**
     * 删除博客
     * @param articleId
     */
    void deleteArticle(Long articleId) throws IOException;
}

